package com.zhehekeji.opsys.api.plugin.wechat.webservice;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import org.apache.cxf.rs.security.cors.CrossOriginResourceSharing;

import com.zhehekeji.opsys.api.plugin.wechat.rsp.QrcodeShowRsp;

/**
 * @ClassName WechatCustomProxyManager
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2018-3-24   下午3:14:17
 */
@Path(value="/")
@WebService
@CrossOriginResourceSharing(allowAllOrigins=true)
public interface WechatCustomProxyManager {
	
	@GET
	@Path(value="getQrcodeShow")
	@Produces(value=MediaType.APPLICATION_JSON )
	@WebMethod(action="doGetQrcodeShow",operationName="getQrcodeShow")
    QrcodeShowRsp getQrcodeShow(@WebParam(name="activityCode")@QueryParam(value="activityCode")String activityCode,
                                @WebParam(name="userID")@QueryParam(value="userID")String userID,
                                @WebParam(name="amount")@QueryParam(value="amount")int amount,
                                @WebParam(name="limitTimes")@QueryParam(value="limitTimes")int limitTimes,
                                @WebParam(name="limitCycle")@QueryParam(value="limitCycle")int limitCycle);
	
	@GET
	@Path(value="getSafeQrcodeShow")
	@Produces(value=MediaType.APPLICATION_JSON )
	@WebMethod(action="doGetSafeQrcodeShow",operationName="getSafeQrcodeShow")
	QrcodeShowRsp getSafeQrcodeShow(@WebParam(name="sign")@QueryParam(value="sign")String sign);
}

